package com.lihepeng.leecode.work;

import org.junit.Test;

public class FunctionTester {
    @Test
    public void runTest01(){
        VUtils.isTrue(true).throwMessage("不应该缺少相关信息");
    }

    @Test
    public void branchHandler(){
        VUtils.isTrueOfFalse(false)
                .trueOrIfHandle(
                        ()->{
                            System.out.println("当前选择为true");
                        },()->{
                            System.out.println("当前选择为False");
                        }
                );
    }
    @Test
    public void emptyTester(){
        VUtils.isBlankOrNoBlank("hello world").presentOrElseHandle(System.out::println,()->{
            System.out.println("当前是空字符串");
        });
    }
}
